using System;
using UnityEngine;
using Object = UnityEngine.Object;

namespace LeeFramework.ResourcesService
{
    public class ResourcesItem : IPool
    {
        public string path;
        public Type type;
        public Object item;

        public void Unload()
        {
            Resources.UnloadAsset(item);
            item = null;
        }

        public void OnReset()
        {
            path = string.Empty;
            type = null;
            item = null;
        }
    } 
}
